package cn.desk.database.entity;

import java.util.List;

import javax.persistence.Id;

import cn.desk.commons.entity.BaseEntity;

public class TableInfo extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private String id;
	private String tableType;
	private List<ColumnInfo> columns;

	public String getTableType() {
		return tableType;
	}

	public void setTableType(String tableType) {
		this.tableType = tableType;
	}

	@Override
	public Object getValue() {
		return getId();
	}

	@Override
	public String getDisplayName() {
		return "数据库对象";
	}

	public List<ColumnInfo> getColumns() {
		return columns;
	}

	public void setColumns(List<ColumnInfo> columns) {
		this.columns = columns;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
